﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:igCA="http://infragistics.com/Chart"
    xmlns:local="clr-namespace:OMANE.Modules.Indicateurs" 
    xmlns:zones="clr-namespace:OMANE.Modules.Indicateurs.Zones"
    xmlns:ig="http://schemas.infragistics.com/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
    mc:Ignorable="d">

    <local:DoubleThicknessConverter x:Key="DoubleThicknessConverter" />
    <DataTemplate DataType="{x:Type local:VMNumberZone}">
        <Grid >
            <TextBlock Text="{Binding FormatedNumber, Mode=OneWay}" FontSize="48" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" Foreground="Red" />
        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMFormatedTextZone}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Text="Cliquer ici Pour Accéder Aux options" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Black" Foreground="White" />
            <local:ZoneRichTextBox Grid.Row="1" Background="{x:Null}" >
                <local:ZoneRichTextBox.ContextMenu>
            		<ContextMenu>
            			<ContextMenu.Style>
            				<Style TargetType="ContextMenu">
            					<Setter Property="Template">
            						<Setter.Value>
            							<ControlTemplate TargetType="ContextMenu">
            								<ItemsPresenter />  							
										</ControlTemplate>   						
									</Setter.Value>    					
								</Setter>     				
							</Style>      			
						</ContextMenu.Style>
            			<Grid MinWidth="250">
            			<Grid.ColumnDefinitions>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            				<ColumnDefinition/>
            			</Grid.ColumnDefinitions>
            			<Grid.RowDefinitions>
            				<RowDefinition/>
            				<RowDefinition/>
            			</Grid.RowDefinitions>
            		    <ComboBox Grid.ColumnSpan="2" />
                            <TextBox Grid.Column="2" Grid.ColumnSpan="2" Text="{Binding RelativeSource={RelativeSource AncestorType=ContextMenu}, Mode=OneWay, Path=PlacementTarget}"   />
                            <ToggleButton Grid.Column="4" Content="AG" Command="{x:Static EditingCommands.AlignLeft}"/>    		
						<ToggleButton Grid.Column="5" Content="AC" Command="{x:Static EditingCommands.AlignCenter}"  />
                            <ToggleButton Grid.Column="6" Content="AD" Command="{x:Static EditingCommands.AlignRight}"/>
                            <ToggleButton Grid.Column="7" Content="AJ" Command="{x:Static EditingCommands.AlignJustify}"/>

                            <ToggleButton Grid.Row="1" Grid.Column="0" Content="G" FontWeight="Bold" Command="{x:Static EditingCommands.ToggleBold}"/>
                            <ToggleButton Grid.Row="1" Grid.Column="1" Content="I" FontStyle="Italic" Command="{x:Static EditingCommands.ToggleItalic}"/>
                            <ToggleButton Grid.Row="1" Grid.Column="2" Content="S" Command="{x:Static EditingCommands.ToggleUnderline}"/>
                            <ig:XamColorPicker Grid.Row="1" Grid.Column="3" SelectedColor="{Binding RelativeSource={RelativeSource AncestorType=ContextMenu}, Path=PlacementTarget.SelectionForeground}"  >
					    	  
						</ig:XamColorPicker>   
						<ig:XamColorPicker Grid.Row="1" Grid.Column="4" />    		
						<Button Grid.Row="1" Grid.Column="5" Content="Cadre" />    		
					    <Button Grid.Row="1" Grid.Column="6" Content="Puce" />
					    <Button Grid.Row="1" Grid.Column="7" Content="Decalage" />    		    		 
					</Grid>      	       		
					</ContextMenu>
                </local:ZoneRichTextBox.ContextMenu>
            </local:ZoneRichTextBox>
        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type zones:TextZone}">
        <Grid >
            <TextBlock Text="{Binding Value, Mode=OneWay}" 
                       FontSize="{Binding Police.Size, Mode=OneWay}" 
                       FontFamily="{Binding Police.Font, Mode=OneWay}"
                       HorizontalAlignment="Center" 
                       VerticalAlignment="Center" 
                       FontWeight="{Binding Police.FontWeight, Mode=OneWay}" 
                       FontStyle="{Binding Police.FontStyle, Mode=OneWay}"
                       Padding="{Binding Padding, Converter={StaticResource DoubleThicknessConverter}}"
                       TextWrapping="Wrap" 
                       >
                <TextBlock.Foreground>
                    <SolidColorBrush Color="{Binding FontBrush, Mode=OneWay}" />
                </TextBlock.Foreground>
            </TextBlock>
        </Grid>
    </DataTemplate>
    
    <DataTemplate DataType="{x:Type local:VMPieZone}">
        <Grid>
            <igCA:XamChart >
            	<igCA:XamChart.Legend>
            		<igCA:Legend Visible="True"/>
            	</igCA:XamChart.Legend>
            	<igCA:XamChart.Caption>
            			<igCA:Caption Text="{Binding Title}" FontFamily="{Binding Police.Font}" FontSize="{Binding Police.Size}" FontStyle="{Binding Police.FontStyle, Mode=OneWay}" FontWeight="{Binding Police.FontWeight, Mode=OneWay}" >
            			<igCA:Caption.Foreground>
            				<SolidColorBrush Color="{Binding TitleColor}"   />    			
						</igCA:Caption.Foreground>       		
					</igCA:Caption>
            	</igCA:XamChart.Caption>
            	<igCA:XamChart.Series>
            		<igCA:Series ChartType="Pie" DataSource="{Binding Data, Mode=OneWay}" DataMapping="Value=X;Label=Lbl">
            			<igCA:Series.Marker>
            				<igCA:Marker Format="{}{Value:N0}" />
            			</igCA:Series.Marker>
            		</igCA:Series>
            	</igCA:XamChart.Series>
            </igCA:XamChart>

        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMBarZone}">
        <Grid>
            <igCA:XamChart >
            	<igCA:XamChart.Series >
            		<igCA:Series ChartType="Bar" DataSource="{Binding Data, Mode=OneWay}" DataMapping="Value=X;Label=Lbl"/>
            	</igCA:XamChart.Series>
            </igCA:XamChart>

        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMLineZone}">
        <Grid>
            <igCA:XamChart >
            	<igCA:XamChart.Series>
            		<igCA:Series ChartType="Line">
            			<igCA:Series.DataPoints>
            				<igCA:DataPoint Value="1"/>
            				<igCA:DataPoint Value="3"/>
            				<igCA:DataPoint Value="7"/>
            				<igCA:DataPoint Value="9"/>
            				<igCA:DataPoint Value="10"/>
            				<igCA:DataPoint Value="8"/>
            				<igCA:DataPoint Value="6"/>
            				<igCA:DataPoint Value="2"/>
            			</igCA:Series.DataPoints>
            		</igCA:Series>
            	</igCA:XamChart.Series>
            </igCA:XamChart>

        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMSplineZone}">
        <Grid>
            <igCA:XamChart >
            	<igCA:XamChart.Series>
            		<igCA:Series ChartType="Spline" StrokeThickness="3" DataSource="{Binding Data, Mode=OneWay}" DataMapping="Value=X;Label=Lbl"/>
            	</igCA:XamChart.Series>         
			</igCA:XamChart>

        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMGaugeZone}">
        <Grid>
            <igCA:XamChart d:IsHidden="True" />

        	<ig:XamLinearGauge HorizontalAlignment="Stretch" d:LayoutOverrides="Height" d:IsHidden="True">
        		<ig:XamLinearGauge.Background>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FFF7F7F7" Offset="1"/>
        				<GradientStop Color="#FFAAC0D6" Offset="0"/>
        			</LinearGradientBrush>
        		</ig:XamLinearGauge.Background>
        		<ig:XamLinearGauge.Scales>
        			<ig:LinearGaugeScale>
        				<ig:LinearGaugeScale.LabelGroups>
        					<ig:LinearGaugeLabelGroup Extent="1" FontWeight="Bold" FontSize="16"/>
        				</ig:LinearGaugeScale.LabelGroups>
        				<ig:LinearGaugeScale.BarMarkers>
        					<ig:LinearGaugeBarMarker/>
        				</ig:LinearGaugeScale.BarMarkers>
        				<ig:LinearGaugeScale.Ranges>
        					<ig:LinearGaugeRange EndValue="100" InnerExtentEnd="0.9" InnerExtentStart="0.1" OuterExtent="1" Stroke="#FF1B1111"/>
        				</ig:LinearGaugeScale.Ranges>
        			</ig:LinearGaugeScale>
        		</ig:XamLinearGauge.Scales>
        	</ig:XamLinearGauge>
        	<ig:XamRadialGauge HorizontalAlignment="Stretch" d:LayoutOverrides="Height" d:IsHidden="True"/>
        	<ig:XamDataChart HorizontalAlignment="Stretch" PlotAreaBorderBrush="#FF513EDC" PlotAreaBorderThickness="2.5">
        		
        		<ig:XamDataChart.Axes>
        			<ig:CategoryAngleAxis 
					     Name="CategoryAngleAxis"
						CrossingAxis="{Binding ElementName=NumericRadiusAxis}" MajorStroke="{x:Null}" MajorStrokeThickness="1">
        				<ig:CategoryAngleAxis.LabelSettings>
        					<ig:AxisLabelSettings Foreground="Black" FontSize="12" FontFamily="Segoe UI" Location="OutsideLeft" OpacityMask="{x:Null}" TextAlignment="Center"/>
        				</ig:CategoryAngleAxis.LabelSettings>
						<ig:CategoryAngleAxis.ItemsSource>
                            <sys:String>Loki</sys:String>
                        </ig:CategoryAngleAxis.ItemsSource>
        			</ig:CategoryAngleAxis>
        			<ig:NumericRadiusAxis
					   Name="NumericRadiusAxis" 
					   CrossingAxis="{Binding ElementName=CategoryAngleAxis}" MinimumValue="0" MaximumValue="6" Interval="2" RadiusExtentScale="0.9" MajorStrokeThickness="2" CrossingValue="45">
        				<ig:NumericRadiusAxis.LabelSettings>
        					<ig:AxisLabelSettings Foreground="Black" FontSize="12" FontFamily="Segoe UI" Location="InsideBottom" OpacityMask="{x:Null}"/>
        				</ig:NumericRadiusAxis.LabelSettings>
        			</ig:NumericRadiusAxis>					
        		</ig:XamDataChart.Axes>
				<ig:XamDataChart.Series>
        			<ig:RadialAreaSeries 
					AngleAxis="{Binding ElementName=CategoryAngleAxis}" 
					ValueAxis="{Binding ElementName=NumericRadiusAxis}"
					Thickness="5" Brush="#FFBD12E5" Outline="#FFBD12E5" />
        		</ig:XamDataChart.Series>
        		<ig:XamDataChart.PlotAreaBackground>
        			<LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
        				<GradientStop Color="White" Offset="0"/>
        				<GradientStop Color="#FF75B8FB" Offset="1"/>
        			</LinearGradientBrush>
        		</ig:XamDataChart.PlotAreaBackground>
        	</ig:XamDataChart>

        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type local:VMHistogramZone}">
        <Grid>
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="Auto"/>
        		<ColumnDefinition />
        	</Grid.ColumnDefinitions>
        	<Grid.RowDefinitions>
        		<RowDefinition />
        		<RowDefinition Height="Auto"/>
        	</Grid.RowDefinitions>
			<TextBlock  />
			<TextBlock Grid.Column="1" Grid.Row="1"  />
            <local:CustomChart  Grid.Column="1" BoundableSeries="{Binding Path=Series}" >
                <local:CustomChart.Resources>
                    <Style x:Key="StyleSerie" TargetType="{x:Type igCA:Series}">
                        <Setter Property="ChartType" Value="Column" />
                        <Setter Property="DataMapping" Value="Value=X;Label=Lbl" />
                        <Setter Property="AxisY" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=DataSource.YAXis}" />
                    </Style>
                </local:CustomChart.Resources>
                <igCA:XamChart.Legend>
                    <igCA:Legend Visible="False"/>
                </igCA:XamChart.Legend>
                <igCA:XamChart.Caption>
                    <igCA:Caption Text="{Binding Title}" FontFamily="{Binding Police.Font}" FontSize="{Binding Police.Size}" FontStyle="{Binding Police.FontStyle, Mode=OneWay}" FontWeight="{Binding Police.FontWeight, Mode=OneWay}" >
                        <igCA:Caption.Foreground>
                            <SolidColorBrush Color="{Binding TitleColor}"   />
                        </igCA:Caption.Foreground>
                    </igCA:Caption>
                </igCA:XamChart.Caption>
                <igCA:XamChart.Axes>
                    <igCA:Axis 
                        AxisType="PrimaryY" 
                        AutoRange="{Binding PrimaryYAxis.AutoRange}" 
                        Maximum="{Binding PrimaryYAxis.Maximum}" 
                        Minimum="{Binding PrimaryYAxis.Minimum}" 
                        Unit="{Binding PrimaryYAxis.Unit}" 
                        Visible="{Binding PrimaryYAxis.Visible}"
                        Name="Primary">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding PrimaryYAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding PrimaryYAxis.Police.Distance}" 
                                FontWeight="{Binding PrimaryYAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding PrimaryYAxis.Police.Format}"
                                FontStyle="{Binding PrimaryYAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding PrimaryYAxis.Police.Size}" 
                                FontFamily="{Binding PrimaryYAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>

                    <igCA:Axis 
                        AxisType="SecondaryY" 
                        AutoRange="{Binding SecondaryYAxis.AutoRange}" 
                        Maximum="{Binding SecondaryYAxis.Maximum}" 
                        Minimum="{Binding SecondaryYAxis.Minimum}" 
                        Unit="{Binding SecondaryYAxis.Unit}" 
                        Visible="{Binding SecondaryYAxis.Visible}"
                        Name="Secondary">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding SecondaryYAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding SecondaryYAxis.Police.Distance}" 
                                FontWeight="{Binding SecondaryYAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding SecondaryYAxis.Police.Format}"
                                FontStyle="{Binding SecondaryYAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding SecondaryYAxis.Police.Size}" 
                                FontFamily="{Binding SecondaryYAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>

                    <igCA:Axis 
                        AxisType="PrimaryX"
                        AutoRange="{Binding XAxis.AutoRange}" 
                        Maximum="{Binding XAxis.Maximum}" 
                        Minimum="{Binding XAxis.Minimum}" 
                        Unit="{Binding XAxis.Unit}" 
                        Visible="{Binding XAxis.Visible}">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding XAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding XAxis.Police.Distance}" 
                                FontWeight="{Binding XAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding XAxis.Police.Format}"
                                FontStyle="{Binding XAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding XAxis.Police.Size}" 
                                FontFamily="{Binding XAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>


                </igCA:XamChart.Axes>

            </local:CustomChart>
            <igCA:XamChart  Grid.Column="1"  Visibility="Collapsed" >
            	<igCA:XamChart.Legend>
            		<igCA:Legend Visible="False"/>
            	</igCA:XamChart.Legend>
            	<igCA:XamChart.Caption>
            		<igCA:Caption Text="{Binding Title}" FontFamily="{Binding Police.Font}" FontSize="{Binding Police.Size}" FontStyle="{Binding Police.FontStyle, Mode=OneWay}" FontWeight="{Binding Police.FontWeight, Mode=OneWay}" >
            			<igCA:Caption.Foreground>
            				<SolidColorBrush Color="{Binding TitleColor}"   />    			
						</igCA:Caption.Foreground>       		
					</igCA:Caption>
            	</igCA:XamChart.Caption>
            	<igCA:XamChart.Axes>
            		<igCA:Axis AxisType="PrimaryY" AutoRange="{Binding PrimaryYAxis.AutoRange}" Maximum="{Binding PrimaryYAxis.Maximum}" Minimum="{Binding PrimaryYAxis.Minimum}" Unit="{Binding PrimaryYAxis.Unit}" Visible="{Binding PrimaryYAxis.Visible}">
            			<igCA:Axis.Label>
            				<igCA:Label Angle="{Binding PrimaryYAxis.Police.Angle}" DistanceFromAxis="{Binding PrimaryYAxis.Police.Distance}" FontWeight="{Binding PrimaryYAxis.Police.FontWeight, Mode=OneWay}" Format="{Binding PrimaryYAxis.Police.Format}" FontStyle="{Binding PrimaryYAxis.Police.FontStyle, Mode=OneWay}" FontSize="{Binding PrimaryYAxis.Police.Size}" FontFamily="{Binding PrimaryYAxis.Police.Font}"/>
            			</igCA:Axis.Label>
            		</igCA:Axis>
					<igCA:Axis AxisType="PrimaryX">
						<igCA:Axis.Label>
						   <igCA:Label Angle="{Binding XAxis.Police.Angle}" DistanceFromAxis="{Binding XAxis.Police.Distance}" FontWeight="{Binding XAxis.Police.FontWeight, Mode=OneWay}" Format="{Binding XAxis.Police.Format}" FontStyle="{Binding XAxis.Police.FontStyle, Mode=OneWay}" FontSize="{Binding XAxis.Police.Size}" FontFamily="{Binding XAxis.Police.Font}"/>
            			</igCA:Axis.Label>
					</igCA:Axis>
            	</igCA:XamChart.Axes>            	
            		
            	
            	<igCA:XamChart.Series>
            		<igCA:Series  ChartType="Column" DataSource="{Binding Data, Mode=OneWay}" DataMapping="Value=X;Label=Lbl"/>
            	</igCA:XamChart.Series>
            </igCA:XamChart>
        </Grid>
    </DataTemplate>

    <DataTemplate DataType="{x:Type local:VMHistogramZoneSimple}">
        <Grid>
            <igCA:XamChart   >
                <igCA:XamChart.Legend>
                    <igCA:Legend Visible="False"/>
                </igCA:XamChart.Legend>
                <igCA:XamChart.Caption>
                    <igCA:Caption Text="{Binding Title}" FontFamily="{Binding Police.Font}" FontSize="{Binding Police.Size}" FontStyle="{Binding Police.FontStyle, Mode=OneWay}" FontWeight="{Binding Police.FontWeight, Mode=OneWay}" >
                        <igCA:Caption.Foreground>
                            <SolidColorBrush Color="{Binding TitleColor}"   />
                        </igCA:Caption.Foreground>
                    </igCA:Caption>
                </igCA:XamChart.Caption>
                <igCA:XamChart.Axes>
                  
                    <igCA:Axis 
                        AxisType="PrimaryY" 
                        AutoRange="{Binding PrimaryYAxis.AutoRange}" 
                        Maximum="{Binding PrimaryYAxis.Maximum}" 
                        Minimum="{Binding PrimaryYAxis.Minimum}" 
                        Unit="{Binding PrimaryYAxis.Unit}" 
                        Visible="{Binding PrimaryYAxis.Visible}"
                        Name="Primary">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding PrimaryYAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding PrimaryYAxis.Police.Distance}" 
                                FontWeight="{Binding PrimaryYAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding PrimaryYAxis.Police.Format}"
                                FontStyle="{Binding PrimaryYAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding PrimaryYAxis.Police.Size}" 
                                FontFamily="{Binding PrimaryYAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>

                    <igCA:Axis 
                        AxisType="SecondaryY" 
                        AutoRange="{Binding SecondaryYAxis.AutoRange}" 
                        Maximum="{Binding SecondaryYAxis.Maximum}" 
                        Minimum="{Binding SecondaryYAxis.Minimum}" 
                        Unit="{Binding SecondaryYAxis.Unit}" 
                        Visible="{Binding SecondaryYAxis.Visible}"
                        Name="Secondary">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding SecondaryYAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding SecondaryYAxis.Police.Distance}" 
                                FontWeight="{Binding SecondaryYAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding SecondaryYAxis.Police.Format}"
                                FontStyle="{Binding SecondaryYAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding SecondaryYAxis.Police.Size}" 
                                FontFamily="{Binding SecondaryYAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>

                    <igCA:Axis 
                        AxisType="PrimaryX"
                        AutoRange="{Binding XAxis.AutoRange}" 
                        Maximum="{Binding XAxis.Maximum}" 
                        Minimum="{Binding XAxis.Minimum}" 
                        Unit="{Binding XAxis.Unit}" 
                        Visible="{Binding XAxis.Visible}">
                        <igCA:Axis.Label>
                            <igCA:Label 
                                Angle="{Binding XAxis.Police.Angle}" 
                                DistanceFromAxis="{Binding XAxis.Police.Distance}" 
                                FontWeight="{Binding XAxis.Police.FontWeight, Mode=OneWay}" 
                                Format="{Binding XAxis.Police.Format}"
                                FontStyle="{Binding XAxis.Police.FontStyle, Mode=OneWay}" 
                                FontSize="{Binding XAxis.Police.Size}" 
                                FontFamily="{Binding XAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>

                </igCA:XamChart.Axes>

                <igCA:XamChart.Series>
                    <igCA:Series   ChartType="Column" DataSource="{Binding Data, Mode=OneWay}" DataMapping="Value=X;Label=Lbl">
                       
                    </igCA:Series>
                </igCA:XamChart.Series>
            </igCA:XamChart>
            <igCA:XamChart  Grid.Column="1"  Visibility="Collapsed" >
                <igCA:XamChart.Legend>
                    <igCA:Legend Visible="False"/>
                </igCA:XamChart.Legend>
                <igCA:XamChart.Caption>
                    <igCA:Caption Text="{Binding Title}" FontFamily="{Binding Police.Font}" FontSize="{Binding Police.Size}" FontStyle="{Binding Police.FontStyle, Mode=OneWay}" FontWeight="{Binding Police.FontWeight, Mode=OneWay}" >
                        <igCA:Caption.Foreground>
                            <SolidColorBrush Color="{Binding TitleColor}"   />
                        </igCA:Caption.Foreground>
                    </igCA:Caption>
                </igCA:XamChart.Caption>
                <igCA:XamChart.Axes>
                    <igCA:Axis AxisType="PrimaryY" AutoRange="{Binding PrimaryYAxis.AutoRange}" Maximum="{Binding PrimaryYAxis.Maximum}" Minimum="{Binding PrimaryYAxis.Minimum}" Unit="{Binding PrimaryYAxis.Unit}" Visible="{Binding PrimaryYAxis.Visible}">
                        <igCA:Axis.Label>
                            <igCA:Label Angle="{Binding PrimaryYAxis.Police.Angle}" DistanceFromAxis="{Binding PrimaryYAxis.Police.Distance}" FontWeight="{Binding PrimaryYAxis.Police.FontWeight, Mode=OneWay}" Format="{Binding PrimaryYAxis.Police.Format}" FontStyle="{Binding PrimaryYAxis.Police.FontStyle, Mode=OneWay}" FontSize="{Binding PrimaryYAxis.Police.Size}" FontFamily="{Binding PrimaryYAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>
                    <igCA:Axis AxisType="PrimaryX">
                        <igCA:Axis.Label>
                            <igCA:Label Angle="{Binding XAxis.Police.Angle}" DistanceFromAxis="{Binding XAxis.Police.Distance}" FontWeight="{Binding XAxis.Police.FontWeight, Mode=OneWay}" Format="{Binding XAxis.Police.Format}" FontStyle="{Binding XAxis.Police.FontStyle, Mode=OneWay}" FontSize="{Binding XAxis.Police.Size}" FontFamily="{Binding XAxis.Police.Font}"/>
                        </igCA:Axis.Label>
                    </igCA:Axis>
                </igCA:XamChart.Axes>


             
            </igCA:XamChart>
        </Grid>
    </DataTemplate>

    <Style x:Key="RadialGaugeTickMarkStyle" TargetType="{x:Type ig:RadialGaugeTickMark}">
        <Setter Property="Template" >
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ig:RadialGaugeTickMark}">
                    <Border Background="Black" BorderBrush="{TemplateBinding Stroke}">
                        <Border.BorderThickness>
                            <Binding Path="(local:RadialGaugeTickMarkGroupExtension.Size)" RelativeSource="{RelativeSource AncestorType={x:Type ig:RadialGaugeTickMarkGroup}}">
                                <Binding.Converter>
                                    <local:DoubleThicknessConverter />
                                </Binding.Converter>
                            </Binding>
                        </Border.BorderThickness>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>
</ResourceDictionary>
